
.devdocs-contributors {
  padding: 0 0 30px 0;

  &.loading {
    min-height: 344px;
    background: url('../../i/loader.svg');
    background-repeat: no-repeat;
    background-position: center;
  }

  &.loaded {
    min-height: 344px;
  }
}


.home-contributors {

  margin: 2em auto;
  text-align: center;

  .intro {
    max-width: 700px;
    margin: 0 auto;
  }

  .periods {
    justify-content: center;
  }

  .contributors-list {
    justify-content: center;
    max-width: 1024px;
    margin: 10px auto 0 auto;
  }

  .contributor {
    padding: 0 10px 20px 10px;
    width: 20%;
    min-width: auto;
    max-width: auto;

    @media ( max-width: 800px) {
      width: 33.3%;
    }

    @media ( max-width: 500px) {
      width: 50%;
    }
  }

}



.contributors-list {
  display: flex;
  flex-wrap: wrap;

  &.hide {
    display: none;
  }
}


.contributor {
  vertical-align: top;
  text-align: left;
  padding: 0 10px 20px 10px;
  width: 20%;

  a {
    display: block;

    &:after {
      display: none !important;
    }

    &:hover {
      .contributor-avatar {
        box-shadow: 0 0 0 2px $brand-color;
      }
    }
  }

  .contributor-avatar {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,.2);
    overflow: hidden;
    transition: box-shadow .1s;
    padding-bottom: 100%;
    margin: 0 0 .5em 0;

    img {
      position: absolute;
      width: 100%;
      height: auto;
      top: 0;
      left: 0;
    }

  }

  .contributor-name {
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
    margin: 0;
  }


  .contributor-stats {
    list-style: none;
    text-align: left;
    margin: 3px 0 0 0;
    padding: 0;

    li {
      padding: 0;
      margin: 0;
      font-size: 11px;
    }
  }

  .contributor-stats {
    span {
      display: inline-block;
      min-width: 50px;
      color: #999;
    }

    a {
      color: #777;
      display: inline-block;
      font-size: 11px;
      padding: .1em .5em;

      &:visited {
        color: #777;
      }

      &:hover {
        color: #333;
      }
    }
  }

  @media ( max-width: 1300px) {
    width: 25%;
  }

  @media ( max-width: 1025px) {
    width: 33%;
  }

  @media ( max-width: 500px) {
    width: 50%;
  }

}


.periods {
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;

  .hide {
    display: none;
  }

  label {
    display: inline-block;
    padding-right: 20px;
    font-weight: 600;
  }

  select {
    background: #fff;
    padding: 5px 35px 5px 15px;
    line-height: 1;
    height: 40px;
    border-radius: 2px;
    border: 1px solid #999;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url();

    background-position: center right;
    background-repeat: no-repeat;
  }

}

.period-type-switcher {
  flex: 1 1 auto;
  text-align: left;

  button {
    border: 1px solid teal;
    color: teal;
    background: #fff;
    font-weight: 600;
    margin: 0 5px 5px 0;
    padding: 9px 20px;

    &:hover {
      background: #eee;
    }
  }

  .active {
    border-color: $brand-color;
    color: $brand-color;
  }
}
